//
//  ZMTopicDetailSubjectCell.h
//  基本框架
//
//  Created by runone02 on 2018/7/6.
//  Copyright © 2018年 liqiyun. All rights reserved.
//

#import "YYTableViewCell.h"
#import "ZMWaterFlowLayout.h"
#import "ZMTopicDetailSubjectModel.h"


@class ZMTopicDetailSubjectCollectView,ZMTopicDetailSubjectUserFollowView;
@interface ZMTopicDetailSubjectCell : YYTableViewCell

@property (nonatomic, strong) NSArray *dataArray;
@property (nonatomic, assign) CGFloat  cacheHeight;
@property (nonatomic, assign) BOOL  needUpdate;
@property (nonatomic, copy) void(^updateCellHeight)(CGFloat);
@property (nonatomic, assign) itemStyle style;

@end

@interface ZMTopicDetailSubjectCellView : UICollectionViewCell

/** 容器 */
@property (nonatomic, strong) UIView *mainView;
/** 点击 */
@property (nonatomic, copy) void(^clickMainView)();
/** 图片 */
@property (nonatomic, strong) ZMImageView *coverImageView;
/** 已删除图片，遇到一个奇怪的bug,只能再添加一个视图 */
@property (nonatomic, strong) UIImageView *deleteImageView;

/** 文章标题 */
@property (nonatomic, strong) UILabel *articleNameLabel;
/** 文章内容 */
@property (nonatomic, strong) UILabel *articleContentLabel;
/** 底部分割线 */
@property (nonatomic, strong) UILabel *bottomLineLabel;

/** 收藏视图 */
@property (nonatomic, strong) ZMTopicDetailSubjectCollectView *collectView;
/** 单行用户点赞视图 */
@property (nonatomic, strong) ZMTopicDetailSubjectUserFollowView *followView;

@property (nonatomic, strong) ZMTopicDetailSubjectModel *model;

- (void)setupUIWithStyle:(itemStyle)style model:(id)model;

@end


@interface ZMTopicDetailSubjectCollectView : UIView

@property (nonatomic, strong) UIImageView *iconImageView;
@property (nonatomic, strong) YYLabel *nameLabel;

@end

@interface  ZMTopicDetailSubjectUserFollowView : UIView

@property (nonatomic, strong) UIView *mainView;
@property (nonatomic, strong) UIImageView *thumbImageView;
@property (nonatomic, strong) UILabel *nameLabel;
@property (nonatomic, strong) UIButton *followButton;
@property (nonatomic, strong) UILabel *bottomLineLabel;

@end
